/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package PackageMaker.UI;

import java.util.Hashtable;

/**
 *
 * @author wcss
 */
public class LanguageArrays 
{
    private static LanguageArrays data = new LanguageArrays();
    private Hashtable<String,String> engList = new Hashtable<String,String>();
    private Hashtable<String,String> cnList = new Hashtable<String,String>();
    
    public LanguageArrays()
    {
        //英文
        engList.put("001", "Sorry, Update Error, Please Restart!");
        engList.put("002", "Updating - ");
        engList.put("003", "Startup");
        engList.put("004", "Exit");
        engList.put("005", "Homepage:");
        engList.put("006", "Maintainer:");
        engList.put("007", "Update Log:");
        engList.put("008", "Need To Download {T} Update, Downloading {I} Update......");
        engList.put("009", "Need To Download {T} Update, Installing {I} Update......");
        engList.put("010", "Finish");
        engList.put("011", "Really Want To Exit?");
        engList.put("012", "Getting Updates List......");
        engList.put("013", "Update");
        engList.put("014", "No Updates Need To Download!");
        
        //中文
        cnList.put("001", "对不起，更新程序错误，请重新启动！");
        cnList.put("002", "正在更新 - ");
        cnList.put("003", "启动");
        cnList.put("004", "退出");
        cnList.put("005", "主页：");
        cnList.put("006", "维护者：");
        cnList.put("007", "更新日志：");
        cnList.put("008", "需要下载{T}个更新，正在下载{I}个更新......");
        cnList.put("009", "需要下载{T}个更新，正在安装{I}个更新......");
        cnList.put("010", "完成");
        cnList.put("011", "真的要退出？");
        cnList.put("012", "正在获取更新列表......");
        cnList.put("013", "更新");
        cnList.put("014", "没有更新需要下载！");
    }
    public static String getLanguageText(String language,String code)
    {
        String result = "";
        if (language.equals("english"))
        {
            return data.engList.get(code);
        }else if (language.equals("chinese"))
        {
            return data.cnList.get(code);
        }
        
        return result;
    }    
}
